import type { ColumnProps } from '@/utils/common/common';

const columns: ColumnProps[] = [
  // { title: "index", dataIndex: "index", slotName: "index", width: 50 },
  { title: '店名', dataIndex: 'storeName' },

  { title: '商品名称', dataIndex: 'goodsName' },
  { title: '条形码', dataIndex: 'barCode' },
  { title: '零售价', dataIndex: 'retailPrice' },
  { title: '会员价', dataIndex: 'memberPrice' },
  { title: '促销价', dataIndex: 'salePrice' },
  { title: '二维码', dataIndex: 'qrcodeUrl' },
  { title: '计价单位', dataIndex: 'salesUnit' },
  { title: '等级', dataIndex: 'grade', show: false },
  { title: '产地', dataIndex: 'origin', show: false },
  { title: '保质期', dataIndex: 'shelf_life', show: false },
  { title: '规格', dataIndex: 'specif', show: false },
  { title: '库存', dataIndex: 'stock', show: false },
  { title: '货号', dataIndex: 'item_no', show: false },
  { title: '促销开始', dataIndex: 'promotion_begin', show: false },
  { title: '促销结束', dataIndex: 'promotion_end', show: false },
  { title: '生产日期', dataIndex: 'production_date', show: false },
  { title: '仓库', dataIndex: 'warehouse', show: false },
  { title: '仓位', dataIndex: 'freight_space', show: false },
  { title: '是否共享', dataIndex: 'share', show: false },
  { title: '刷新次数', dataIndex: 'refreshTimes', show: false },
  { title: '部门', dataIndex: 'department' },
  {
    title: '操作',
    dataIndex: 'operation',
    fixed: 'right',
    width: 150,
  },
];
const columnsRef = ref(columns);

export { columns, columnsRef };
